// 引入相应模块
import Mock from 'mockjs'
import banner from './banner.json'
import floor from './floor.json'
// import mockAjax from './mockAjax'

// 配置服务
// Mock.mock(url, method, data)
Mock.mock('/mock/banner', 'get', {
  code: 200,
  status: '请求成功',
  data: banner,
})
Mock.mock('/mock/floor', 'get', { code: 200, status: '请求成功', data: floor })

// 测试一下
// mockAjax.get('/banner').then(
//   (res) => {
//     console.log(res)
//   },
//   (err) => {
//     console.log(err)
//   }
// )
